package cn.redragon.soa.common.amqp.model;


import cn.redragon.soa.common.constant.Constants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MessageResponse<T> {

    private String code = Constants.MQ.SUCCESS;

    private String msg = Constants.STATUS_SUCCESS;

    private T content;

    public MessageResponse(T content) {
        this.content = content;
    }

}
